package com.wm.walmart.service.impl;

import com.wm.walmart.entity.Modules;
import com.wm.walmart.mapper.ModulesMapper;
import com.wm.walmart.service.IModulesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xieyize
 * @since 2019-12-10
 */
@Service
public class ModulesServiceImpl extends ServiceImpl<ModulesMapper, Modules> implements IModulesService {

	@Resource
	private ModulesMapper mMapper;

	/**
	 * 根据用户id获取该用户的模块信息
	 */
	public List<Modules> getModuleByUserId(Integer id) {
		return mMapper.getModuleByUserId(id);
	}

}
